package fr.paris.lutece.plugins.xbmc.web.saison;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

import fr.paris.lutece.plugins.generic.web.AbstractJspBean;
import fr.paris.lutece.portal.service.template.AppTemplateService;
import fr.paris.lutece.util.html.HtmlTemplate;

/**
 * The Saison Jsp Bean
 * @author jchaline
 */
public class SaisonJspBean extends AbstractJspBean {

    public static final String RIGHT_MANAGE_SAISONS = "SAISONS_MANAGEMENT";

    private static final String TEMPLATE_MANAGE_SAISONS = "admin/plugins/xbmc/manage_saisons.html";
	
    /**
     * Get the manage saisons page
     *
     * @param request http the request
     * @return the page with saisons list
     */
    public String getManageSaisons( HttpServletRequest request )
    {
    	Map<String,Object> model = super.getManageBeansModel( request );
    
    	HtmlTemplate template = AppTemplateService.getTemplate( TEMPLATE_MANAGE_SAISONS, getLocale(  ), model );

        return getAdminPage( template.getHtml(  ) );
    }

}